from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from utils.database import Base

class User(Base):
    __tablename__ = "users"
    id = Column(Integer, primary_key=True, autoincrement=True, nullable=False)
    # 设置自增序列起始值为100000
#    id.Sequence('my_table_id_seq', start=100000)
    username = Column(String(50), unique=True, index=True,nullable=False)
    email = Column(String(100), unique=True, index=True,nullable=False)
    password = Column(String(100),nullable=False)
    pushdeer_key = Column(String(100), unique=True) #使用PushDeer